import request from '@/utils/request'

// 查询菜品规格详情列表
export function listDishdetail(query) {
  return request({
    url: '/order/dishdetail/list',
    method: 'get',
    params: query
  })
}

// 查询菜品规格详情详细
export function getDishdetail(detailId) {
  return request({
    url: '/order/dishdetail/' + detailId,
    method: 'get'
  })
}

// 新增菜品规格详情
export function addDishdetail(data) {
  return request({
    url: '/order/dishdetail',
    method: 'post',
    data: data
  })
}

// 修改菜品规格详情
export function updateDishdetail(data) {
  return request({
    url: '/order/dishdetail',
    method: 'put',
    data: data
  })
}

// 删除菜品规格详情
export function delDishdetail(detailId) {
  return request({
    url: '/order/dishdetail/' + detailId,
    method: 'delete'
  })
}
